package com.qingcloud.adminbackend.entity.mqtt;

import com.qingcloud.adminbackend.constant.WamingConstant;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
public class AuthKey implements Serializable {

    @ApiModelProperty(value = "产品认证号", example = "product01")
    private String productKey;

    @ApiModelProperty(value = "设备号", example = "1190100123")
    private String deviceKey;

    @ApiModelProperty(value = "协议版本号", example = "1.0")
    private String version;

    public AuthKey(String deviceKey) {
        this.deviceKey = deviceKey;
        this.version = WamingConstant.MQTT_PROTOCOL_VERSION_1;
        this.productKey = WamingConstant.MQTT_PROTOCOL_PRODUCT_KEY;
    }
}
